body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
}

.main-frame {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.top-bar {
    display: flex;
    flex-direction: row;
    flex: 0 0 25px;
    align-items: center;
    background-color: #282c34;
    color: #f0f0f0;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.top-bar button {
    background-color: #61afef;
    color: #f0f0f0;
    border: none;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.top-bar button:hover {
    background-color: #5193d1;
}

.child-frame {
    display: flex;
    flex-direction: row;
    flex: 1;
    background-color: #20232a;
    width: 100%;
    height: calc(100% - 50px);
}

.left-bar
{
    display: flex;
    flex-direction: column;
    flex: 0 0 200px;
    background-color: #1a1a1a; /* 深灰色背景 */
    border-right: 1px solid #2B2B2B;
    color: #f0f0f0;
}

.filter-text
{
    display: flex;
    justify-content: center;
    flex: 0 0 25px;
    width: 100%;

}

.filter-input
{
    width: 100%;
    margin: 5px;
}

.path-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #1a1a1a; /* 深灰色背景 */
    border-right: 1px solid #2B2B2B;
    color: #f0f0f0;
    overflow-y: auto;
    padding: 15px; /* 内部间距增加 */
}

.folder-item, .file-item {
    padding: 2px;
    /* margin-bottom: 5px; */
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size:14px;
    word-wrap: break-word; /* 使文本内容自动换行 */
    word-break: break-all; /* 在必要时进行单词拆分 */
    white-space: normal; /* 允许文本换行 */
    border-bottom: 1px solid #2B2B2B; /* 分割线 */
}

.folder-item.active, .file-item.active {
    background-color: #606060;
    font-weight: bold;
}

.folder-item {
    /* background-color: #f0f8ff; */
}

.file-item {
    /* background-color: #f5f5f5; */
}

img {
    width: 24px; /* 设置统一宽度 */
    height: 24px; /* 设置统一高度 */
    margin-right: 5px; /* 设置右边距 */
    vertical-align: middle; /* 垂直居中对齐 */
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.view-frame {
    display: flex;
    flex-direction: column;
    flex : 1;
    /* flex: 0 0 calc(100% - var(--left-bar-width)); */
    background-color: #282c34;
    /* width: calc(100% - var(--left-bar-width)); */
    /* width: 100vmin; */
    /* overflow-x : hidden; */

}

.tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /*background-color: #1a1a1a; 与左侧栏一致的背景色
    /* background-color: #5193d1; */
    border-bottom: 1px solid #2B2B2B; /* 底部边框 */
}

.tab {
    padding: 10px 5px;
    cursor: pointer;
    background-color: #282c34;
    color: #f0f0f0;
    border-right: 1px solid #2B2B2B;
    display: flex;
    align-items: center;
    font-size:12px;
}

.tab:hover {
    background-color: #3a3f47;
}

.tab.active {
    background-color: #606060;
    font-weight: bold;
}

.tab .close-btn {
    margin-left: 5px;
    cursor: pointer;
    color: red;
    font-weight: bold;
    font-size: 12px;
}

.view {
    display: inline-block;
    flex: 1 1 100%;
    background-color: #0d0d0d;
    overflow-y: auto;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
}

.view pre {
    display: inline-block;
    flex-direction: row;
    flex: 0 0 auto;
    
    width: auto;
    height: auto;
    overflow-x: hidden;
    overflow-y: hidden;
}

#show-code {
    padding: 30px;
    width: auto;
    height: auto;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: #0d0d0d; 
}

.password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #282c34;
}

.password-box {
    background-color: #1e2127;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #f0f0f0; /* 文本颜色 */
}


.password-box input[type="password"] {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    border: 1px solid #3e4451;
    border-radius: 4px;
    background-color: #2c313c;
    color: #abb2bf;
    outline: none;
}

.password-box button {
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #61afef;
    color: white;
    cursor: pointer;
}

.password-box button:hover {
    background-color: #5193d1;
}

.hidden {
    display: none;
}

#theme-selector {
    padding: 5px 10px; /* 内部填充 */
    margin-left: 10px; /* 左侧间距 */
    border: 1px solid #3e4451; /* 边框颜色 */
    border-radius: 4px; /* 圆角 */
    background-color: #1e2127; /* 背景色 */
    color: #abb2bf; /* 字体颜色 */
    outline: none; /* 去除默认轮廓 */
    cursor: pointer; /* 光标样式 */
}

#theme-selector option {
    background-color: #1e2127; /* 选项背景色 */
    color: #abb2bf; /* 选项字体颜色 */
}

.hljs-ln-n{
    margin-right: 20px;
}